package tcp


import (
	"net"
	"fmt"
	"time"
)

func RunC(){
	c, error := net.Dial("tcp",":80")
	//c, error := net.DialTimeout("tcp",":80", 2*time.Second)
	if error != nil{
		fmt.Println("connect error ", error)
		return
	}

	defer c.Close()
	fmt.Println("connect success")
}